<!--
 * @Author: 杨文涓 943701297@qq.com
 * @Date: 2022-05-08 09:43:02
 * @LastEditors: 杨文涓 943701297@qq.com
 * @LastEditTime: 2022-05-08 09:57:44
 * @FilePath: \Webc:\Users\94370\Desktop\面向工作学习\html css\6-CSS 四 (第六天)\13-浮动布局练习3.html
 * @Description: 
 *  小米官网简略产品模块
 * Copyright (c) 2022 by 杨文涓 943701297@qq.com, All Rights Reserved. 
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>浮动布局练习-3</title>
    <style>
        .box {
            color: white;
            width: 1226px;
            height: 615px;
            background-color: black;
            margin: 0 auto;
        }

        .left {
            width: 234px;
            height: 615px;
            background-color: purple;
            float: left;
        }

        .right {
            width: 992px;
            height: 615px;
            background-color: skyblue;
            float: right;
        }

        .right>div {
            width: 234px;
            height: 300px;
            background-color: pink;
            float: left;
            margin-left: 14px;
            margin-bottom: 14px;
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="left">1</div>
        <div class="right">
            <div>1</div>
            <div>2</div>
            <div>3</div>
            <div>4</div>
            <div>5</div>
            <div>6</div>
            <div>7</div>
            <div>8</div>
        </div>
    </div>
</body>

</html>